home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-04
/
422mods.zip
/
ZYCOR01.422
< prev
Wrap
Text File
|
1993-03-05
|
6KB
|
158 lines
Zycor01.mod or BD001x.mod or Whatever
Zycor #1 @9666
Sun Feb 28 09:17:31 1993
┌───────────────────────────────────────────────────────────────────────────┐
│ Mod Name: Zycor01.mod Mod Author: Zycor │
│ Difficulty: Simple! Date: February 28, 1993 │
│ WWIV Version: 4.22 │
│ Files Affected: BBS.C │
│ Description: A new void sublist() that shows the gold value of a post! │
│ Now supports non-ansi Users. -Zy. │
│ Posted on : ICEnet - WWIVnet │
└───────────────────────────────────────────────────────────────────────────┘
It always irritates me that people write mods, and completely leave out
the non-ansi users. I don't have many, but I think they should be taken
care of. Not to mention most of my non-ansi users are long distance and
are not using the ansi to save time. So I rewrote this mod, and am
releasing it as Zycor01.Mod - I really can't take credit for this, as I
did nothing to the mod, it works by itself, all I did was add the
non-ansi calls. But for the sake of naming the thing, you can use
Zycor01.mod or BD001x.422 or whatever.
-Zycor.
===========================================================================
Originally posted as:
┌───────────────────────────────────────────────────────────────────────────┐
│ Mod Name: BD001a.422 Mod Author: Beats me │
└───────────────────────────────────────────────────────────────────────────┘
For got who wrote this but all I did was debug it and add the ability for
Gold. Before installing this replace all the ^C with heart codes and select
your colors as well. It works just replace the void sublist() in BBS.C and
compile!
===========================================================================
void sublist(void)
{
int abort,i,ok,sam,tally,thissub,counter,totalmsg,newmsg;
char s[256],s1[81],c;
goldload();
abort=thissub=totalmsg=newmsg=0;
pla(" ^P1──══ ^P7Sub-Message Boards Available ^P1══── ",&abort);
npr(" ^P3The ^P1* ^P3Indicates Sub included in your newscan\r\n");
nl();
npr("^P2 Num Sub Type Sub-Message Board Topic Msg New Go
ld\r\n",&abort);
if(okansi())
npr("^P7╔════╦═══════════╦════════════════════════════════════════╦═══╦═══╦
═══╗\r\n",&abort); /* Reconnect this line above */
else
npr("^P7+----+-----------+----------------------------------------+---+---+
---+\r\n",&abort); /* Reconnect this line above */
i=0;
while ((i<num_subs) && (usub[i].subnum!=-1) && (abort==0)) {
sam=tally=0;
if (strcmp(usub[cursub].keys,usub[i].keys))
thissub=1;
else
thissub=0;
if (okansi())
sprintf(s1,"^P7║ ^P2%3s^P7║ ",usub[i].keys);
else
sprintf(s1,"^P7| ^P2%3s^P7| ",usub[i].keys);
strcpy(s,s1);
if (qsc_q[usub[i].subnum/32]&(1L<<(usub[i].subnum%32)))
strcat(s,"^P1* ");
else
strcat(s," ");
if (net_sysnum || (net_num_max>1)) {
if (xsubs[usub[i].subnum].num_nets) {
if (xsubs[usub[i].subnum].num_nets>1) {
if (okansi())
sprintf(s1,"^P5GATED ^P7║ ^P1");
else
sprintf(s1,"^P5GATED ^P7| ^P1");
strcat(s,s1);
} else {
if (okansi())
sprintf(s1,"^P5%-8s^P7║ ^P1",net_networks[xsubs[usub[i].subnum].
nets[0].net_num].name); /* Reconnect this line above */
else
sprintf(s1,"^P5%-8s^P7| ^P1",net_networks[xsubs[usub[i].subnum].
nets[0].net_num].name); /* Reconnect this line above */
strcat(s,s1);
}
} else
if (okansi())
strcat(s,"^P2Local ^P7║ ^P1");
else
strcat(s,"^P2Local ^P7| ^P1");
} else
if (okansi())
strcat(s,"^P2Local ^P7║ ^P1");
else
strcat(s,"^P2Local ^P7| ^P1");
strcat(s,subboards[usub[i].subnum].name);
for (counter=strlen(subboards[usub[i].subnum].name); counter<39; counter++)
strcat(s," ");
if (okansi())
strcat(s,"^P7║");
else
strcat(s,"^P7|");
iscan(i);
sam=1;
if (usub[i].subnum<num_subs)
while((sam<=nummsgs) && (msgs[sam].qscan<=qsc_p[usub[i].subnum]))
++sam;
tally=nummsgs-(sam-1);
totalmsg+=nummsgs;
newmsg+=tally;
if (okansi())
sprintf(s1,"^P3%3d^P7║^P2%3d^P7║^P2%3d^P7║",nummsgs,tally,rewardgold[usub
[i].subnum]); /* Reconnect this line above */
else
sprintf(s1,"^P3%3d^P7|^P2%3d^P7|^P2%3d^P7|",nummsgs,tally,rewardgold[usub
[i].subnum]); /* Reconnect this line above */
strcat(s,s1);
if (thissub==1) {
thissub=0;
}
else
if (okansi())
strcat(s,"^P4ε----^P0");
else
strcat(s,"^P4<----^P0");
strcat(s,"\r\n");
npr(s);
if (inkey()!=0)
abort=1;
i++;
}
if (okansi())
npr("^P7╚════╩═══════════╩════════════════════════════════════════╩═══╩═══╩
═══╝\r\n"); /* Reconnect this line above */
else
npr("^P7+----+-----------+----------------------------------------+---+---+
---+\r\n"); /* Reconnect this line above */
npr("\r\n^P1You have a total of ^P5%-3d^P1 messages, and ^P5%-3d^P1 are new.\
r\n",totalmsg,newmsg); /* Reconnect this line above */
if (i==0)
pla("^P6None.",&abort);
nl();
}
=============================================================================
Thats all there is to it. -Zy.